import { $http } from '@/utils/index.js'
//小程序登陆
export function appletlogin(params = {}) {
	return $http.post('User/login', params)
}

//公众号登录
export function officialLogin(params){
	return $http.post('User/officialLogin', params)
}

//获取统计信息
export function getCount() {
	return $http.get('User/getUserStatistics')
}

//获取用户账单
export function getBill(params) {
	return $http.get('Bill/getList', params)
}

//修改
export function editUser(params) {
	return $http.post('User/editUser', params)
}